//
//  HandyJsonUtil.swift
//  UserApp_iOS
//
//  Created by linlin on 2019/9/17.
//  Copyright © 2019 linlin. All rights reserved.
//

import Foundation
import HandyJSON

extension HandyJSON{
    static func getModelList(from array: [[String:Any]]?) -> [Self] {
        var modelList: [Self] = []
        array?.forEach({ (dic : [String : Any]) in
            let model = Self.deserialize(from: dic)
            modelList.append(model!)
        })
        
        return modelList
    }
}
